<template>
	<view class="zhuanyongj">
		<view class="titles">
			<view class="li tit">
				〈区域独家代理〉
			</view>
			<view class="li">
				让我们共同来面对新机遇与挑战
			</view>

			<view class="li" @click="call()">
				地区加盟 <span>18583007777 </span>
			</view>
			<!-- <view class="li btn">
				点击下载APP
			</view> -->


		</view>
		
		<view class="titles" style="margin-top: 20rpx;">
			<view class="">
				已加盟公司
			</view>
			<view class="scroll_box">
				<swiper class="swiper" circular="true" vertical="true" display-multiple-items="10" :autoplay="autoplay"
					:interval="interval" :duration="duration">
					<swiper-item v-for="(item,index) in list" :key="index">
						<view class="swiper-item uni-bg-green">{{item.agentName}}</view>
					</swiper-item>
				</swiper>
			</view>
		</view>

	</view>
</template>

<script>
	import {
		agentall
	} from '@/api/api.js';
	export default {
		components: {

		},
		data() {
			return {
				autoplay: true,
				interval: 1000,
				duration: 2000,
				list: [],
			};
		},
		onShow() {
			agentall().then(res=>{
				this.list = res.data
			})
		},
		methods: {

		},
	}
</script>


<style lang="scss" scoped>
	.zhuanyongj {
		box-sizing: border-box;
		padding: 30rpx;

		.titles {
			background-color: #fff;
			box-shadow: 0 0 3px #ccc;
			padding: 30rpx;
			border-radius: 10rpx;
		}

		.btn {
			background-color: #3591e0;
			display: flex;
			width: 220rpx;
			height: 70rpx;
			align-items: center;
			justify-content: center;
			border-radius: 10rpx;
			color: #fff;
			margin: 0 auto;
			margin-top: 40rpx;
		}

		.tit {
			text-align: center;
			font-size: 34rpx;

		}

		.li {
			text-align: center;
			margin-top: 20rpx;

			span {
				color: #3591e0;
				margin-left: 3px;
			}
		}
	}

	.scroll_box {
		background: #FFFFFF;
		margin: 30rpx;
		border-radius: 10rpx;

		.swiper {
			height:250px;
		}
	}
</style>